﻿@model shop.DanhMuc

@{
    ViewBag.Title = "Thêm sản phẩm";
}

@using (Html.BeginForm()) {
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)
        <div class="editor-label">
            Tên Danh Mục
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.DanhMuc1)
            @Html.ValidationMessageFor(model => model.DanhMuc1)
        </div>

        <div class="editor-label">
            Mã Danh Mục
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.MaDM)
            @Html.ValidationMessageFor(model => model.MaDM)
        </div>

        @*<div class="editor-label">
           ID cha
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.IDCha)
            @Html.ValidationMessageFor(model => model.IDCha)
        </div>*@

        <div class="editor-label">
            Id con
        </div>
        <div class="editor-field">
            @Html.Action("DanhMucCha","partial")
            @Html.ValidationMessageFor(model => model.IDCon)
        </div>

        <div class="editor-label">
            Vị trí(ID phải có vị trị)
        </div>
        <div class="editor-field">
            @*@Html.EditorFor(model => model.ViTri)*@
           @* @Html.ValidationMessageFor(model => model.ViTri)*@

            <select name="ViTri">
                <option value="">Không Vị trí</option>
                <option value="1">Vị trí 1</option>
                <option value="2">Vị trí 2</option>
                <option value="3">Vị trí 3</option>
            </select>
        </div>

        <div class="editor-label">
            Cha
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Cha)
            @Html.ValidationMessageFor(model => model.Cha)
        </div>

        <p>
            <input type="submit" value="Thêm" />
        </p>
   
}

